package com.kuang.demo.controller.wx;

import com.kuang.demo.bean.BaseRespVo;
import com.kuang.demo.bean.WXFeedbackSubmit;
import com.kuang.demo.service.wx.WXFeedbackService;
import com.kuang.demo.service.wx.WXFeedbackServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/feedback")
public class WXFeedbackController {
    @Autowired
    WXFeedbackService wxFeedbackServiceImpl;
    @PostMapping("submit")
    public BaseRespVo feedbackSubmit(@RequestBody WXFeedbackSubmit feedbackSubmit){
        wxFeedbackServiceImpl.submit(feedbackSubmit);
        return BaseRespVo.ok();
    }

}
